require_relative "require_helper"

class TestFib < Test::Unit::TestCase

	def setup
		@demo = Fib.new
	end
	
	must " @demo.fib 0 equal 0" do 
		assert_equal 0,@demo.fib(0)
	end

	must " @demo.fib 1 equal 1" do
		assert_equal 1,@demo.fib(1)
	end

	must " @demo.fib 2 equal 1" do
		assert_equal 1,@demo.fib(2)
	end

	must " @demo.fib 3 equal 2" do
		assert_equal 2,@demo.fib(3)
	end

	must " @demo.fib 4 equal 3" do 
		assert_equal 3,@demo.fib(4)
	end

	must " @demo.fib 5 equal 5" do 
		assert_equal 5, @demo.fib(5)
	end

	must " @demo.fib 32 " do
		puts @demo.fib 32
	end

	must " @demo.fib 40 " do
		puts @demo.fib 40
	end
	
	must " @demo.fib 100 " do
		puts @demo.fib 100
	end

end

